<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<!-- 
1、这个表单的id不能变，固定写成"pagerForm"。
2、input用来隐藏查询条件和分页的信息。当点1页、2页的时候时候，DWZ要将该form中的input数据发送到java端
 -->

<form id="pagerForm" method="post" action="inrecords/out.do">
	    <input type="hidden" name="pageNum" value="${requestScope.count.pageNum}" />
	   <input type="hidden" name="numPerPage" value="${requestScope.count.numPerPage}" />  
	   <input type="hidden" name="code" value="${requestScope.count.code}" /> 
	   <input type="hidden" name="out_storage_time" value="${requestScope.count.out_storage_time}" />
	   <input type="hidden" name="out_storage1_time" value="${requestScope.count.out_storage1_time}" />
	   <input type="hidden" name="deptName" value="${requestScope.count.deptName}" /> 
	   <input type="hidden" name="userName" value="${requestScope.count.userName}" />
	  
</form>
<div class="pageHeader">
	<form onsubmit="return navTabSearch(this);" action="inrecords/out.do"
		method="post">
		<div class="searchBar">
			<table class="searchContent">
				<tr>
				
				 <td>仓库名称： 
				                            
				<!-- 用户自定义条件查询 -->
					<input class="required" bringbackname="district.deptname"  type="text" name="deptName"  />
				    
					</td>
					<td > <a  class="btnLook" href="dept/showtree.do" lookupGroup="district">查找带回</a>
						<input type="reset" value="清空" /></td>
				
					<td>
					流水号：<input type="text" name="code" />
					</td>
					<td>
					操作人：<input type="text" name="userName" />
					</td>
				</tr>
				<tr>
				<td>
				入库时间：
				<input type="text" name="out_storage_time" class="date" readonly="true"   />
				</td>
				<td>到</td>
				<td>
				<input type="text" name="out_storage1_time" class="date" readonly="true"   />
				</td>
				</tr>
			</table>
			
			<div class="subBar">
			
				<ul>
					<li><div class="buttonActive">
							<div class="buttonContent">
								<button type="submit">查询</button>
							</div>
						</div>
					</li>
					
				</ul>
			</div>
		</div>
	</form>
	
</div>
<div class="pageContent" >
<!-- 用来绘制分页的界面 -->
	<div class="panelBar">
		<div class="pages">
			<span>每页显示</span> <select class="combox" name="numPerPage"
				onchange="navTabPageBreak({numPerPage:this.value})">
				<option value="10">10</option>
				<option value="20">20</option>
				<option value="50">50</option>
			</select> <span>条，共${requestScope.count.totalCount}条</span>
		</div>
		<div class="pagination" targetType="navTab"
			totalCount="${requestScope.count.totalCount}"
			numPerPage="${requestScope.count.numPerPage}" pageNumShown="10"
			currentPage="${requestScope.count.pageNum}"></div>
	</div>

<!-- 展示查询结果 -->
	<table class="table"  width="100%" layoutH="138">
		<thead>
			<tr>
			
			
			    <th></th>
				
				<th>出库流水号</th>
				<th>商品名称</th>
				<th>出库时间</th>
				<th>出库类型</th>
				<th>数量</th>
				<th>当前库房</th>
				<th>操作人</th>
				<th>备注</th>
			</tr>
		</thead>
		<tbody   id="s">
			<c:forEach items="${requestScope.alls}" var="i" varStatus="status">
			
				
				<tr>
				
					<td>${status.index + 1}</td>
					<td>${i.code}</td>
					<td>${i.goodsName}</td>
					<td>${i.time}</td>
					<td><c:if test="${i.out_storage_type =='0'}">销售出库</c:if> 
					<c:if test="${i.out_storage_type =='1'}">活动出库</c:if>
					<c:if test="${i.out_storage_type =='2'}">调拨出库</c:if>    </td>
					<td>${i.sum}</td>
					<td>${i.deptName}</td>
					<td>${i.userName}</td>
					<td></td>
					
				</tr>
				
			</c:forEach>
		</tbody>
	</table>
</div>

